
<template>
	<view class="page-content-box">
		<view class="success-content">
			<view class="image-box">
				<image style="width: 296rpx; height: 280rpx;" mode="aspectFit" src="../../static/canshu-ok.png"></image>
			</view>
			<view class="success-text">
				<text>结账成功</text>
			</view>
			
			<view class="other-btn-box flex-block-row">
				<button class="back-btn" type="primary" @click="gobackIndex">返回首页</button>
				<button class="go-btn" type="primary" @click="goToDetail">查看订单</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId:'',
				// order_mode:1,
			}
		},
		onLoad(options) {
			console.log(options,"参数");
			this.orderId = options.orderId;
			// this.order_mode = options.order_mode;
		},
		methods: {
			goToDetail(){
				uni.redirectTo({
					 url: "/pages/orderdetail/orderdetail?icode="+this.orderId,
				})
			},
			gobackIndex(){
				uni.switchTab({
					url:'/pages/category/category'
				})
			}
		}
	}
</script>

<style>
	.page-content-box{
		height: 100%;
		overflow-y: auto;
		background-color: #fff;
	}
	.success-content{
		padding: 75rpx 125rpx;
		text-align: center;
		box-sizing: border-box;
		width: 100%;
	}
	.success-content .image-box{
		height: 280rpx;
		margin-bottom: 70rpx;
		padding-left: 20rpx;
	}
	.success-content .success-text{
		font-size:32rpx;
		font-weight:bold;
		color:#fda600;
	}
	.success-content .success-tips{
		padding: 10rpx 0 20rpx 0;
	}
	.success-content .success-tips view{
		font-size:28rpx;
		color:#161616;
		line-height: 40rpx;
	}
	.success-content .other-btn-box{
		justify-content: space-between;
		margin-top: 30rpx;
	}
	.success-content .other-btn-box button{
		width:240rpx;
		height:80rpx;
		background: #fff;
		border-radius:40rpx;
		line-height: 76rpx;
		box-sizing: border-box;
		padding: 0;
		font-size:24rpx;
		color:#161616;
		border: none;
	}
	.success-content .other-btn-box .go-btn{
		border:2rpx solid rgba(253, 166, 0, 1.0);
		color:#fda600;
		margin-left: 40rpx;
	}
	.success-content .other-btn-box .back-btn{
		border:2rpx solid rgba(229,229,229,1);
		color:#161616;
	}
</style>
